package com.rxm.ys;

import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * Hello world!
 */
@SpringCloudApplication
@EnableFeignClients
public class ConsumerApplication {
    public static void main(String[] args) {
        SpringApplication.run(ConsumerApplication.class, args);
        System.out.println("   ____  _  __\n" +
                "  / __ \\| |/ /\n" +
                " | |  | | ' / \n" +
                " | |  | |  <  \n" +
                " | |__| | . \\ \n" +
                "  \\____/|_|\\_\\\n" +
                "              \n" +
                "              ");
    }
    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }
}
